<template>
    <div>
        <div class="crumbs">
            <el-breadcrumb separator="/">
                <el-breadcrumb-item>
                    <div class="contentsize">房间详情</div>
                </el-breadcrumb-item>
            </el-breadcrumb>
        </div>
        <div class="container">
            <div class="addtitle">
                <div>详情</div>
                <div>
                    <el-button type="primary" @click="backForm">返回</el-button>
                </div>
            </div>
            <el-descriptions :column="3" border size="medium" :labelStyle="rowCenter" :contentStyle="contentCenter">
                <el-descriptions-item label="项目名称：">{{ projectdetail.projectName }}</el-descriptions-item>
                <el-descriptions-item label="城市名称：">{{ projectdetail.cityName }}</el-descriptions-item>
                <el-descriptions-item label="行政区名称：">{{ projectdetail.districtName }}</el-descriptions-item>
                <el-descriptions-item label="街道名称：">{{ projectdetail.streetName }}</el-descriptions-item>
                <el-descriptions-item label="楼盘名称：">{{ projectdetail.communityName }}</el-descriptions-item>
                <el-descriptions-item label="楼栋名称：">{{ projectdetail.buildingName }}</el-descriptions-item>
                <el-descriptions-item label="单元名称：">{{ projectdetail.unitName }}</el-descriptions-item>
                <el-descriptions-item label="楼层：">{{ projectdetail.floor }}</el-descriptions-item>
                <el-descriptions-item label="门牌：">{{ projectdetail.roomNumber }}</el-descriptions-item>
                <el-descriptions-item label="地址：">{{ projectdetail.roomAddress }}</el-descriptions-item>
                <el-descriptions-item label="状态：">{{ projectdetail.status==-1?'驳回': projectdetail.status==0?'待审核':'通过'}}</el-descriptions-item>
                <el-descriptions-item label="流程状态：">{{ projectdetail.bpmStatus }}</el-descriptions-item>
                <el-descriptions-item label="户型：">{{ projectdetail.houseType }}</el-descriptions-item>
                <el-descriptions-item label="房源编号：">{{ projectdetail.roomCode }}</el-descriptions-item>
                <el-descriptions-item label="面积：">{{ projectdetail.roomArea }}</el-descriptions-item>
                <el-descriptions-item label="价格：">{{ projectdetail.roomPrice }}</el-descriptions-item>
                <el-descriptions-item label="房间描述：">{{ projectdetail.roomVersion }}</el-descriptions-item>
                <el-descriptions-item label="房间标签：">{{ projectdetail.roomTag }}</el-descriptions-item>
                <el-descriptions-item label="装修类型：">{{ projectdetail.housingRenovation }}</el-descriptions-item>
                <el-descriptions-item label="收放盘状态：">{{ projectdetail.saleStatus==0?'收盘':'放盘' }}</el-descriptions-item>
                <el-descriptions-item label="是否假期看房：">{{ projectdetail.isViewHoliday==0?'否':'是' }}</el-descriptions-item>
                <el-descriptions-item label="房屋备注：">{{ projectdetail.houseNotes }}</el-descriptions-item>
                <el-descriptions-item label="费用类型：">{{ projectdetail.feeType }}</el-descriptions-item>
                <el-descriptions-item label="最高楼层数：">{{ projectdetail.maxFloorCount }}</el-descriptions-item>
                <el-descriptions-item label="房屋状态：">{{ projectdetail.housingStatus }}</el-descriptions-item>
                <el-descriptions-item label="平台标识：">{{ projectdetail.platformFlag==0?'普通':projectdetail.platformFlag==1?'集团级':'平台级' }}</el-descriptions-item>
                <el-descriptions-item label="户型名称：">{{ projectdetail.houseTypeName }}</el-descriptions-item>
                <el-descriptions-item label="户型中居室数量：">{{ projectdetail.bedroomNumber }}</el-descriptions-item>
                <el-descriptions-item label="户型中客厅数量：">{{ projectdetail.parlorNumber }}</el-descriptions-item>
                <el-descriptions-item label="户型中厨房个数：">{{ projectdetail.kitchenNumber }}</el-descriptions-item>
                <el-descriptions-item label="户型中卫浴个数：">{{ projectdetail.bathroomNumber }}</el-descriptions-item>
                <el-descriptions-item label="阳台个数：">{{ projectdetail.balconyNumber }}</el-descriptions-item>
                <el-descriptions-item label="朝向：">{{ projectdetail.roomToward }}</el-descriptions-item>
                <el-descriptions-item label="出租价格：">{{ projectdetail.rentPrice }}</el-descriptions-item>
                <el-descriptions-item label="房屋租期：">{{ projectdetail.leaseTerm }}</el-descriptions-item>
                <el-descriptions-item label="单价：">{{ projectdetail.unitPrice }}</el-descriptions-item>
                <el-descriptions-item label="VR看房地址：">{{ projectdetail.vrUrl }}</el-descriptions-item>
                <el-descriptions-item label="方案名称：">{{ projectdetail.planName }}</el-descriptions-item>
                <el-descriptions-item label="电表费用类型：">{{ projectdetail.electFeeType }}</el-descriptions-item>
                <el-descriptions-item label="水表费用类型：">{{ projectdetail.waterFeeType }}</el-descriptions-item>
            </el-descriptions>
        </div>
    </div>
</template>
<script>
export default {
    name: 'fjxxdetail',
    data() {
        return {
            form: {},
            contentCenter: {
                'min-width': '230px', //最小宽度
                'word-break': 'break-all' //过长时自动换行
            },
            rowCenter: {
                'text-align': 'right',
                width: '230px'
            },
            projectdetail: {}
        };
    },
    methods: {
        // 返回上一页
        backForm() {
            this.$router.go(-1);
        }
    },
    mounted() {
        this.projectdetail=JSON.parse(this.$route.params.data)
    }
};
</script>
<style></style>
<style scoped>
.container {
    overflow: hidden;
}

.crumbs {
    background-color: #fff;
    padding: 20px 20px;
}

.indexTitle {
    margin-bottom: 20px;
}

.contentsize {
    font-size: 18px;
    font-weight: 700;
}

.handle-box {
    overflow: hidden;
}

.addtitle {
    display: flex;
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 20px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.buttonCenter {
    width: 12%;
    margin: auto;
}

.unloadTitle {
    text-align: left;
    padding-bottom: 10px;
    box-sizing: border-box;
    color: #606266;
}

/* 按钮 */
.searchcolor {
    background-color: #7090ff;
}

.detailcontent {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.detailcontent .detailitem {
    /* float: left; */
    width: 33%;
    margin-bottom: 30px;
}

.detailcontent .detailitem1 {
    /* float: left; */
    width: 100%;
    margin-bottom: 30px;
}

/* 项目文件 */
.filebox {
    text-align: center;
    margin-right: 10px;
    cursor: pointer;
}

.filebox:hover .fileboxitem {
    color: #7090ff;
}
</style>